<script setup lang="ts">
import { ref } from 'vue';
export const test = {
  data(){

  }
}
const isvisible = ref(false)
</script>

<template>
  <!-- <XtxMessage type="error">失败</XtxMessage> -->
  <!-- <XtxMessage type="success">成功</XtxMessage> -->
  <XtxButton type="primary" @click="isvisible= true">显示</XtxButton>

    <Teleport to="body">
    <XtxDialog title="请选择地址" v-model:visible="isvisible">
      <span>文本内容</span>
      <template #footer>
        <XtxButton type="gray" style="margin-right: 20px" @click="isvisible = false">取消</XtxButton>
        <XtxButton type="primary" @click="isvisible = false">确认</XtxButton>
      </template>
    </XtxDialog>
  </Teleport>
</template>

<style  lang="less" scoped>
</style>
